//
//  JieDanSuccessVC.m
//  LogisticsSupplier
//
//  Created by 吕晶 on 2020/9/15.
//  Copyright © 2020 吕晶. All rights reserved.
//

#import "JieDanSuccessVC.h"

@interface JieDanSuccessVC ()

@end

@implementation JieDanSuccessVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"提单受理";
    [self configUI];
}

- (void)configUI {
    self.view.backgroundColor = HexColor(0xffffff);
    UIImageView *iconImgView = [[UIImageView alloc] initWithFrame:CGRectMake((ScreenW - 60) * 0.5, 90, 60, 60)];
    iconImgView.image = [UIImage imageNamed:@"icon_submit_success"];
    [self.view addSubview:iconImgView];
    
    UILabel *titleLab = [[UILabel alloc] initWithFrame:CGRectMake(0, iconImgView.nim_bottom + 30, ScreenW, 32)];
    titleLab.font = BoldFontOfSize(30);
    titleLab.text = @"接单成功";
    titleLab.textAlignment = NSTextAlignmentCenter;
    titleLab.textColor = HexColor(0x2B2C44);
    [self.view addSubview:titleLab];
    
    
    UIButton *backBtn = [[UIButton alloc] initWithFrame:CGRectMake((ScreenW - 295) * 0.5, titleLab.nim_bottom + 90, 295, 40)];
    backBtn.backgroundColor = HexColor(0xffffff);
    [backBtn setTitle:@"返回" forState:0];
    [backBtn setTitleColor:HexColor(0x2B2C44) forState:0];
    backBtn.titleLabel.font = BoldFontOfSize(16);
    backBtn.layer.masksToBounds = YES;
    backBtn.layer.cornerRadius = 6;
    backBtn.layer.borderWidth = 2;
    backBtn.layer.borderColor = HexColor(0xF2F2F5).CGColor;
    [backBtn addTarget:self action:@selector(backToHome) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:backBtn];
}

- (void)backToHome {
    [self.rt_navigationController popToRootViewControllerAnimated:YES];
}

@end
